package com.offcn.sellergoods.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.lang.Long;
import java.util.Date;
import java.lang.String;
import java.lang.Integer;

/**
 *  SKU表
 * @Author:ujiuye
 * @Description:Item构建
 * @Date 2021/2/1 14:19
 *****/
@Data
@ApiModel(description = "Item", value = "Item")
@TableName(value = "tb_item")
@ToString()
public class Item implements Serializable {

    /**
     * 商品id，同时也是商品编号
     */
    @ApiModelProperty(value = "商品id，同时也是商品编号", required = false)
    @TableId(type = IdType.AUTO)
    @TableField(value = "id")
    private Long id;

    /**
     * 商品标题
     */
    @ApiModelProperty(value = "商品标题", required = false)
    @TableField(value = "title")
    private String title;

    /**
     * 商品卖点
     */
    @ApiModelProperty(value = "商品卖点", required = false)
    @TableField(value = "sell_point")
    private String sellPoint;

    /**
     * 商品价格，单位为：元
     */
    @ApiModelProperty(value = "商品价格，单位为：元", required = false)
    @TableField(value = "price")
    private BigDecimal price;

    @ApiModelProperty(value = "", required = false)
    @TableField(value = "stock_count")
    private Integer stockCount;

    /**
     * 库存数量
     */
    @ApiModelProperty(value = "库存数量", required = false)
    @TableField(value = "num")
    private Integer num;

    /**
     * 商品条形码
     */
    @ApiModelProperty(value = "商品条形码", required = false)
    @TableField(value = "barcode")
    private String barcode;

    /**
     * 商品图片
     */
    @ApiModelProperty(value = "商品图片", required = false)
    @TableField(value = "image")
    private String image;

    /**
     * 所属类目，叶子类目
     */
    @ApiModelProperty(value = "所属类目，叶子类目", required = false)
    @TableField(value = "categoryId")
    private Long categoryId;

    /**
     * 商品状态，1-正常，2-下架，3-删除
     */
    @ApiModelProperty(value = "商品状态，1-正常，2-下架，3-删除", required = false)
    @TableField(value = "status")
    private String status;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", required = false)
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * /更新时间
     */
    @ApiModelProperty(value = "更新时间", required = false)
    @TableField(value = "update_time")
    private Date updateTime;

    @ApiModelProperty(value = "", required = false)
    @TableField(value = "item_sn")
    private String itemSn;

    @ApiModelProperty(value = "", required = false)
    @TableField(value = "cost_pirce")
    private BigDecimal costPirce;

    @ApiModelProperty(value = "", required = false)
    @TableField(value = "market_price")
    private BigDecimal marketPrice;

    @ApiModelProperty(value = "", required = false)
    @TableField(value = "is_default")
    private String isDefault;

    @ApiModelProperty(value = "", required = false)
    @TableField(value = "goods_id")
    private Long goodsId;

    @ApiModelProperty(value = "", required = false)
    @TableField(value = "seller_id")
    private String sellerId;

    @ApiModelProperty(value = "", required = false)
    @TableField(value = "cart_thumbnail")
    private String cartThumbnail;

    @ApiModelProperty(value = "", required = false)
    @TableField(value = "category")
    private String category;

    @ApiModelProperty(value = "", required = false)
    @TableField(value = "brand")
    private String brand;

    @ApiModelProperty(value = "", required = false)
    @TableField(value = "spec")
    private String spec;

    @ApiModelProperty(value = "", required = false)
    @TableField(value = "seller")
    private String seller;
}
